from django.db import models

class Mylog(models.Model):
    name = models.CharField(max_length=30)
    content = models.TextField()
    time = models.DateTimeField(auto_now_add=True)

    def __unicode__(self):
        return 'Content:%s' % self.content

    class Meta:
        ordering = ['-time']
